package com.bootdo.project.service.impl;

import com.bootdo.project.domain.TOrderGoods;
import com.bootdo.project.dao.TOrderGoodsMapper;
import com.codegen.vo.Page;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.beans.factory.annotation.Autowired;

import org.apache.ibatis.annotations.Param;

/**
 *
 * Created by xxxx on 2019/03/19.
 */
@Service
public class TOrderGoodsService {

	@Autowired
    private TOrderGoodsMapper tOrderGoodsMapper;
    
    public int deleteByPrimaryKey(Long id){
        return tOrderGoodsMapper.deleteByPrimaryKey(id);
    }

    public int insert(TOrderGoods record){
        return tOrderGoodsMapper.insert(record);
    }

    public int insertSelective(TOrderGoods record){
        return tOrderGoodsMapper.insertSelective(record);
    }

    public TOrderGoods selectByPrimaryKey(Long id){
        return tOrderGoodsMapper.selectByPrimaryKey(id);
    }

    public int updateByPrimaryKeySelective(TOrderGoods record){
        return tOrderGoodsMapper.updateByPrimaryKeySelective(record);
    }

    public int updateByPrimaryKey(TOrderGoods record){
        return tOrderGoodsMapper.updateByPrimaryKey(record);
    }

    public List<TOrderGoods> selectByCondition(TOrderGoods record){
        return tOrderGoodsMapper.selectByCondition(record);
    }

    public List<TOrderGoods> selectAll(){
        return tOrderGoodsMapper.selectAll();
    }

    public List<TOrderGoods> selectByPage(Page<TOrderGoods> page){
        return tOrderGoodsMapper.selectByPage(page);
    }

    public Integer count(TOrderGoods record){
        return tOrderGoodsMapper.count(record);
    }

    public int deleteByCondition(TOrderGoods record){
        return tOrderGoodsMapper.deleteByCondition(record);
    }

}
